<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VS Code Like Interface</title>
    <style>
        body {
            margin: 0;
            display: flex;
            height: 100vh;
            font-family: Arial, sans-serif;
            background-color: #1e1e1e;
            color: #d4d4d4;
        }

        .sidebar {
            width: 300px;
            background-color: #252526;
            display: flex;
            flex-direction: column;
            padding: 10px;
        }

        .sidebar h2 {
            margin-top: 0;
            font-size: 1.2em;
        }

        .file-tree {
            flex: 1;
            overflow-y: auto;
            margin-top: 20px;
        }

        .file-tree button {
            background-color: #007acc;
            color: white;
            padding: 10px;
            width: 100%;
            border: none;
            text-align: left;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .file-tree button:hover {
            background-color: #005a9e;
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .navbar {
            background-color: #333;
            color: white;
            padding: 10px;
            text-align: center;
        }

        .editor {
            flex: 1;
            background-color: #1e1e1e;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
        }

        .recent-files {
            margin-top: 20px;
            color: #d4d4d4;
        }

        .recent-files a {
            color: #3794ff;
            text-decoration: none;
            display: block;
            margin-bottom: 5px;
        }

        .recent-files a:hover {
            text-decoration: underline;
        }

        .actions {
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .actions button {
            background-color: #007acc;
            color: white;
            padding: 10px;
            border: none;
            cursor: pointer;
            margin: 0 5px;
        }

        .actions button:hover {
            background-color: #005a9e;
        }
    </style>
</head>
<body>
    <div class="sidebar">
        <h2>资源管理器</h2>
        <div class="file-tree">
            <button onclick="openFolder()">打开文件夹</button>
            <button onclick="openFile()">打开文件</button>
            <button onclick="openRecent()">打开最近的文件</button>
            <button onclick="connectRemote()">连接到远程</button>
            <button onclick="openRepository()">打开远程存储库</button>
        </div>
        <div class="recent-files">
            <h2>最近</h2>
            <a href="#">boost_demo</a>
            <a href="#">ai_server</a>
            <a href="#">vscode_cli_alpine_x64_cli</a>
        </div>
    </div>
    <div class="main">
        <div class="navbar">Visual Studio Code</div>
        <div class="editor">欢迎</div>
        <div class="actions">
            <button>新建文件</button>
            <button>打开文件...</button>
            <button>打开文件夹...</button>
            <button>打开仓库...</button>
        </div>
    </div>
    <script>
        function openFolder() {
            alert("打开文件夹功能尚未实现");
        }

        function openFile() {
            alert("打开文件功能尚未实现");
        }

        function openRecent() {
            alert("打开最近的文件功能尚未实现");
        }

        function connectRemote() {
            alert("连接到远程功能尚未实现");
        }

        function openRepository() {
            alert("打开远程存储库功能尚未实现");
        }
    </script>
</body>
</html>
